#include "genericplugin.h"
#include "widgets/upushbutton.h"

GenericPlugin::GenericPlugin(QObject *parent) : UIPlugin(parent)
{
}

GenericPlugin::~GenericPlugin()
{
}

int GenericPlugin::type() const
{
    return 100;
}

QString GenericPlugin::name() const
{
    return "GenericPlugin";
}

void GenericPlugin::initializationFinished()
{

}

QObject *GenericPlugin::createObject(const QString &name, QObject *parent)
{
    UPushButton *btn = new UPushButton("", qobject_cast<QWidget*>(parent));
    btn->setObjectName(name);
    btn->setText("GenericPlugin");
    return btn;
}


